package assignment;

import java.util.StringTokenizer;

public class ReverseWord 
{
   public static void main(String[] args) 
   {
	        String name=new String("Divya is a smart girl");
	        System.out.println("The given string is " +name);
	        StringTokenizer strTokens=new StringTokenizer(name," ");
	        
	        while (strTokens.hasMoreTokens())
	        {
	        	
	        	String tokenStr=strTokens.nextToken();
	        	
	        	int j=tokenStr.length()-1;
		      	String temp=new String("");
		      	
		    	for(int i=j;i>=0;i--)
				{
		    		temp=temp+tokenStr.charAt(i);
				}
		        System.out.print(temp+" ");
	        }
	      	
	      	
	      	

	    	
		}

	}

	
